import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/sys_message_detail_entity.dart';

SysMessageDetailEntity $SysMessageDetailEntityFromJson(Map<String, dynamic> json) {
	final SysMessageDetailEntity sysMessageDetailEntity = SysMessageDetailEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		sysMessageDetailEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		sysMessageDetailEntity.code = code;
	}
	final SysMessageDetailData? data = jsonConvert.convert<SysMessageDetailData>(json['data']);
	if (data != null) {
		sysMessageDetailEntity.data = data;
	}
	return sysMessageDetailEntity;
}

Map<String, dynamic> $SysMessageDetailEntityToJson(SysMessageDetailEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

SysMessageDetailData $SysMessageDetailDataFromJson(Map<String, dynamic> json) {
	final SysMessageDetailData sysMessageDetailData = SysMessageDetailData();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		sysMessageDetailData.id = id;
	}
	final String? msgTitle = jsonConvert.convert<String>(json['msgTitle']);
	if (msgTitle != null) {
		sysMessageDetailData.msgTitle = msgTitle;
	}
	final String? msgContent = jsonConvert.convert<String>(json['msgContent']);
	if (msgContent != null) {
		sysMessageDetailData.msgContent = msgContent;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		sysMessageDetailData.createTime = createTime;
	}
	final bool? redDot = jsonConvert.convert<bool>(json['redDot']);
	if (redDot != null) {
		sysMessageDetailData.redDot = redDot;
	}
	return sysMessageDetailData;
}

Map<String, dynamic> $SysMessageDetailDataToJson(SysMessageDetailData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['msgTitle'] = entity.msgTitle;
	data['msgContent'] = entity.msgContent;
	data['createTime'] = entity.createTime;
	data['redDot'] = entity.redDot;
	return data;
}